package com.design.composite.demo.transparent;

public abstract class CourseComponet {

    public void addChild(CourseComponet courseComponet) {
        throw new UnsupportedOperationException("不支持添加操作");
    }

    void removeChild(CourseComponet courseComponet) {
        throw new UnsupportedOperationException("不支持删除操作");
    }

    String getName(CourseComponet courseComponet) {
        throw new UnsupportedOperationException("不支持获取名称操作");
    }

    double getPrice(CourseComponet courseComponet) {
        throw new UnsupportedOperationException("不支持获取价格操作");
    }

    void print() {
        throw new UnsupportedOperationException("不支持打印操作");
    }

}
